package com.newcoder.huawei;

import java.util.Scanner;

/**
 * 句子逆序
 */
public class HJ13 {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String inputString = in.nextLine();
        String[] stringArray = inputString.split(" ");
        for (int i = stringArray.length-1; i >= 0 ; i--) {
            System.out.print(stringArray[i] + " ");
        }
    }
}
